package dymnd.ui;
import java.awt.*;
import javax.swing.*;
//import java.awt.event.*;
import java.awt.image.*;
public class MenuPane extends JPanel{
	
	BufferedImage bgImage = null;
	public MenuPane(BufferedImage backgroundImage)	{
		bgImage = backgroundImage;
	}
	
	public void paintComponent(Graphics arg0)	{
		Graphics2D g = (Graphics2D) arg0;
		for(int i = 0; i*bgImage.getWidth() < getWidth(); i++)	{
			g.drawImage(bgImage, i*bgImage.getWidth(), 0, null);
		}
				
	}
	
	public void update(Graphics g)	{
		paintAll(g);
	}
}
